﻿<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Default.aspx.vb" Inherits="SandwichServices._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>Untitled Page</title>
	<script language="javascript" type="text/javascript">
		// <!CDATA[

		function Button1_onclick() {
			var service = new SandwichServices.CostService();
			service.CostOfSandwiches(3, onSuccess, null, null);
		}

		function onSuccess(result) {
			alert(result);
		}


		// ]]>
	</script>
</head>
<body>
	<form id="form1" runat="server">
	<div>
	</div>
	<asp:ScriptManager ID="ScriptManager1" runat="server">
		<Services>
			<asp:ServiceReference Path="~/App_Code/CostService.svc" />
		</Services>
	</asp:ScriptManager>
	</form>
	<p>
		<input id="Button1" type="button" value="Price for 3 Sandwiches" onclick="return Button1_onclick()" /></p>
</body>
</html>
